﻿using System;

namespace ES.Client.Aggs
{
    public class DateHistogramItem
    {
        public long Key { get; set; }

        public DateTime KeyAsDate
        {
            get
            {
                return DateTime.Parse(this.KeyAsString);
            }
        }

        public string KeyAsString { get; set; }

        public long DocCount { get; set; }
    }
}
